<?php
// The following file was created by Iwo Kadziela at TECHROAM: http://www.techroam.com
// The following code assumes that localhost is your host, root is your username, you do not have a password, and test is the name of your database
// Please make sure that these fields set in accordance with your database settings

$dbconnection = mysql_connect ("localhost", "fossilplot", "fossilplot") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("fossilplot", $dbconnection) or die("Couldn't open database: ".mysql_error());

$result = mysql_query("SELECT * from test1 where `genus`='".urldecode($_GET['genus'])."' AND `orders`='".$_GET['orders']."';");

while ($row = mysql_fetch_array($result)) {
echo $row['genus'].", ".$row['orders'];
}
?>